﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo03
{
    class Square:Shape
    {
        protected double sideLen;

        public double SideLen
        {
            get { return this.sideLen; }
            set { this.sideLen = value; }
        }

        public override void GetArea(double a)
        {
            //base.GetArea();
            double result = a * a;
            Console.WriteLine("正方形面积："+result);
        }
    }
}
